#-------------------------------------------------
#
# Project created by QtCreator 2022-03-22T21:10:17
#
#-------------------------------------------------

QT       += core gui sql serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets


TEMPLATE = app


SOURCES += main.cpp\
    addbook.cpp \
        admindialog.cpp \
    bookmsg.cpp \
        login.cpp \
        msgdialog.cpp \
        regist.cpp \
        returndialog.cpp \
        senddialog.cpp \
    serial.cpp \
    sim900a.cpp \
        sqlite.cpp \
    thread.cpp \
        user.cpp \
        widget.cpp \
    mylineedit.cpp \
    registtip.cpp \
    lend.cpp \
    lendconform.cpp \
    tipwidget.cpp \
    admin.cpp \
    lendmsg.cpp

HEADERS  += widget.h \
    addbook.h \
    admindialog.h \
    bookmsg.h \
    login.h \
    msgdialog.h \
    regist.h \
    returndialog.h \
    senddialog.h \
    serial.h \
    sim900a.h \
    sqlite.h \
    thread.h \
    user.h \
    mylineedit.h \
    registtip.h \
    lend.h \
    lendconform.h \
    tipwidget.h \
    admin.h \
    lendmsg.h

FORMS    += widget.ui \
    MsgWidget.ui \
    addbook.ui \
    admindialog.ui \
    bookmsg.ui \
    login.ui \
    msgdialog.ui \
    regist.ui \
    returndialog.ui \
    senddialog.ui \
    user.ui \
    registtip.ui \
    lend.ui \
    lendconform.ui \
    tipwidget.ui \
    admin.ui \
    lendmsg.ui

RESOURCES += \
    res.qrc

DISTFILES +=


include($$PWD/ListWidget/listwidget.pri)
include($$PWD/keyboard/keyboard.pri)


DEFINES  *= SUPPORT_ARM
#DEFINES  *= SUPPORT_TEST

contains(DEFINES, SUPPORT_ARM){
    message("arm")
    DESTDIR = $$PWD/../
    TARGET = QLibrary_g
}else{
    message("PC")
    DESTDIR = $$PWD/
    TARGET = QLibrary
}
